package club.menglinking.wechat;

import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;

/**
 * @ClassName BaseJunit
 * @Author wuxuan
 * @Date 2019/1/10 21:30
 * @Version 1.0
 * @Description
 **/
@RunWith(SpringRunner.class)
@SpringBootTest
public class BaseJunit {

    @Autowired
    WebApplicationContext ctx;

    MockMvc mockMvc;

    @Before
    public void setup() throws Exception{
        mockMvc = MockMvcBuilders.webAppContextSetup(ctx).build();
    }




}
